awilliam@xenbuild.aw [Mon, 3 Jul 2006 14:12:16 +0000 (08:12 -0600)]
[IA64] privop_stat.c
Cleanup: create privop_stat.[ch]
Move all stats function to privop_stat.c to depolute other files.
Signed-off-by: Tristan Gingold <tristan.gingold@bull.net>
awilliam@xenbuild.aw [Mon, 3 Jul 2006 13:42:17 +0000 (07:42 -0600)]
[IA64] Fix a typo.
Signed-off-by: Zhang xiantao <xiantao.zhang@intel.com>
awilliam@xenbuild.aw [Wed, 28 Jun 2006 13:52:21 +0000 (07:52 -0600)]
merge with xen-unstable.hg
awilliam@xenbuild.aw [Wed, 28 Jun 2006 13:51:52 +0000 (07:51 -0600)]
[IA64] make PAL_VPS_RESUME_HANDLER comply with VTI-spec
Signed-off-by: Anthony Xu <anthony.xu@intel.com>
kaf24@firebug.cl.cam.ac.uk [Wed, 28 Jun 2006 11:04:32 +0000 (12:04 +0100)]
[NET] back: Add TSO support
This patch adds TCP Segmentation Offload (TSO) support to the backend.
It also advertises this fact through xenbus so that the frontend can
detect this and send through TSO requests only if it is supported.
This is done using an extra request slot which is indicated by a flag
in the first slot. In future checksum offload can be done in the same
way.
The extra request slot must not be generated if the backend does not
support the appropriate feature bits. For now this is simply feature-tso.
If the frontend detects the presence of the appropriate feature bits,
it may generate TX requests which have the appropriate request flags
set that indicates the presence of an extra request slot with the extra
information.
On the backend the extra request slot is read if and only if the request
flags are set in the TX request.
This protocol allows more feature bits to be added in future without
breaking compatibility. At least the hardware checksum bit is planned.
Even though only TSO is supported for now the code actually supports
GSO so it can be applied to any other protocol. The only missing bit
is the detection of host support for a specific GSO protocol. Once that
is added we can advertise all supported protocols to the guest.
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Wed, 28 Jun 2006 11:03:57 +0000 (12:03 +0100)]
[NET] loopback: Added support for TSO
Just like SG, TSO support here is innate. So all we need to do is mark it
as such. This patch also adds the ethtool control functions for SG.
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
kaf24@firebug.cl.cam.ac.uk [Wed, 28 Jun 2006 11:03:19 +0000 (12:03 +0100)]
[NET]: Give make_tx_response the req pointer instead of id
This patch changes the make_tx_response id argument to a request pointer
instead. This allows us to test the request flag in future for TSO.
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
kaf24@firebug.cl.cam.ac.uk [Wed, 28 Jun 2006 11:03:01 +0000 (12:03 +0100)]
[NET]: Added GSO support
Imported GSO patch.
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
kfraser@dhcp93.uk.xensource.com [Wed, 28 Jun 2006 09:32:43 +0000 (10:32 +0100)]
[BLKBACK] Output statistics to sysfs.
The location is 'statistics' directory under each VBD directory, for
example, /sys/devices/xen-backend/vbd-x-xxxx/statistics.
The 'statistics' directory includes the following three statistical
information:
oo_req
is the number of requests held up due to full pipeline.
rd_req
is the number of processed READ requests.
wr_req
is the number of processed WRITE requests.
Signed-off-by: Satoshi UCHIDA <s-uchida@ap.jp.nec.com>
kaf24@firebug.cl.cam.ac.uk [Wed, 28 Jun 2006 09:24:05 +0000 (10:24 +0100)]
[XENTOP] Fix CPU percentage display in batch mode.
From: shaocyou <shaocyou@jp.fujitsu.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Wed, 28 Jun 2006 09:22:13 +0000 (10:22 +0100)]
[XENTOP] Adds batch mode processing option (output to stdout)
to the xentop utility. It also adds the ability to specify the
number of iterations xentop should produce before exiting.
a) xentop -b
will output to stdout.
b) xentop -i <number>
will iterate <number> times and exit (option "n" is already used by
xentop. Hence the choice of "i"). This option can be used for both the
curses and batch modes.
From: Hariprasad Nellitheertha <mlisthari@gmail.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Wed, 28 Jun 2006 09:03:24 +0000 (10:03 +0100)]
[HVM][SVM] Clean up double-fault handling.
Signed-off-by: Tom Woller <thomas.woller@amd.com>
kaf24@firebug.cl.cam.ac.uk [Wed, 28 Jun 2006 09:02:27 +0000 (10:02 +0100)]
[HVM][SVM] Disable machine check bits in CPUID_1.
Signed-off-by: Tom Woller <thomas.woller@amd.com>
kaf24@firebug.cl.cam.ac.uk [Wed, 28 Jun 2006 09:01:18 +0000 (10:01 +0100)]
[HVM][SVM] Clean up 32bit/64bit guest register code differences.
Signed-off-by: Tom Woller <thomas.woller@amd.com>
awilliam@xenbuild.aw [Tue, 27 Jun 2006 22:42:41 +0000 (16:42 -0600)]
[IA64] Fix a few warnings.
Signed-off-by: Tristan Gingold <tristan.gingold@bull.net>
awilliam@xenbuild.aw [Tue, 27 Jun 2006 22:35:59 +0000 (16:35 -0600)]
[IA64] ptc.g virtualization fix 2
When emulating ptc.ga, VMM needs to change pta temporarily,
which cause VHPT is not mapped by TR, then vhpt fault may
happen inside VMM, it is not correct.
This patch is to fix this issue.
When changing pta, VMM makes VHPT disabled temporarily.
Signed-off-by: Anthony Xu <anthony.xu@intel.com>
kaf24@firebug.cl.cam.ac.uk [Tue, 27 Jun 2006 17:24:08 +0000 (18:24 +0100)]
[LINUX] Fix a few compile warnings and memory leaks in the sysfs driver.
Also clean up the general allocate-call-free idiom that is used
throughout the file.
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Tue, 27 Jun 2006 17:08:46 +0000 (18:08 +0100)]
[LINUX][BLKBACK] Support temporary disconnection from frontend.
Signed-off-by: Steven Smith <sos22@cam.ac.uk>
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Tue, 27 Jun 2006 14:38:32 +0000 (15:38 +0100)]
[HVM] Fix virtual apic irq distribution.
But currently we inject PIT irqs to cpu0 only. Also mute some warning
messages.
Signed-off-by: Yunhong Jiang <yunhong.jiang@intel.com>
Signed-off-by: Xin Li <xin.b.li@intel.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
kfraser@dhcp93.uk.xensource.com [Tue, 27 Jun 2006 14:22:55 +0000 (15:22 +0100)]
[XEN] Upgrade microcode driver to 1.14a.
Based on a patch from Jan Beulich.
Signed-off-by: Keir Fraser <keir@xensource.com>
kfraser@dhcp93.uk.xensource.com [Tue, 27 Jun 2006 13:38:58 +0000 (14:38 +0100)]
[TOOLS] Remove plan9 loader code. Latest plan9 port uses linux builder.
Signed-off-by: Keir Fraser <keir@xensource.com>
kfraser@dhcp93.uk.xensource.com [Tue, 27 Jun 2006 13:34:52 +0000 (14:34 +0100)]
[XEN] Various cleanups to bitops usage.
Signed-off-by: Keir Fraser <keir@xensource.com>
kfraser@dhcp93.uk.xensource.com [Tue, 27 Jun 2006 11:17:45 +0000 (12:17 +0100)]
[LINUX] Allow dma_alloc_coherent() to work for regions up to 2MB.
The previous limit of 0.5MB was insufficient for some drivers
(e.g., when loading firmware).
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Tue, 27 Jun 2006 11:03:46 +0000 (12:03 +0100)]
[BALLOON] Make the domain0 ballooning logic in xend aware of pages that are on the page scrub list.
This fixes the case where crashing/restarting a domain can cause dom0 to balloon more than
necessary.
I changed the physinfo dictionary in Python to be in KiB, rather than
MiB, to avoid accumulating ugly rounding errors. I tried to avoid
changing units anywhere else.
Signed-off-by: Charles Coffing <ccoffing@novell.com>
kaf24@firebug.cl.cam.ac.uk [Tue, 27 Jun 2006 10:50:57 +0000 (11:50 +0100)]
[BUILD] Add distclean build target to xen directory: cleans out tags.
Signed-off-by: Horms <horms@verge.net.au>
kaf24@firebug.cl.cam.ac.uk [Tue, 27 Jun 2006 10:43:04 +0000 (11:43 +0100)]
[BALLOON] Add fallback code so that e.g. a domain ballooned too far down can still
(slowly) recover.
Signed-off-by: Jan Beulich <jbeulich@novell.com>
kfraser@dhcp93.uk.xensource.com [Tue, 27 Jun 2006 10:35:29 +0000 (11:35 +0100)]
[XEN] Fix my change to XENVER_pagesize hypercall --
arg check wrong way round.
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Tue, 27 Jun 2006 10:29:29 +0000 (11:29 +0100)]
[TPM] Fix an occasional problem when doing local migration due to the xenstore's
'instance' variable not being initialized at the time when it's driver
counterpart is accessed. That variable's content was used to initialize the
tpmif structure. Instead, now a pointer to the structure is passed whose
'instance' variable will be initialized before the domain is resumed.
Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
kaf24@firebug.cl.cam.ac.uk [Tue, 27 Jun 2006 10:27:25 +0000 (11:27 +0100)]
[XEN][BUILD] Both ctags and etags support the -a (append) option, and
by removing the tags or TAGS file, and then running using the
-a option in conjunction with xargs a full list of tags will
be obtained, regardless of how many files there are.
I believe that the existing invocations of both etags and ctags are wrong:
* I don't think - is a vailid argument to etags
* xargs ctags does not handle the case where ctags is invoked
multiple times by xargs when there are too many files
to fit on one command line.
Signed-off-by: Horms <horms@verge.net.au>
kaf24@firebug.cl.cam.ac.uk [Tue, 27 Jun 2006 10:23:06 +0000 (11:23 +0100)]
Add Xenoprof passive domain support
Signed-off-by: Yang Xiaowei <xiaowei.yang@intel.com>
Signed-off-by: Jose Renato Santos <jsantos@hpl.hp.com>
kaf24@firebug.cl.cam.ac.uk [Tue, 27 Jun 2006 10:17:14 +0000 (11:17 +0100)]
[HVM][SVM] move printk pin msg under an "if svm_dbg_on" conditional to
alleviate excessive printing of messages when vcpu pinned to new core.
Signed-off-by: Tom Woller <thomas.woller@amd.com>
kaf24@firebug.cl.cam.ac.uk [Tue, 27 Jun 2006 10:15:48 +0000 (11:15 +0100)]
[VTPM_TOOLS] Hotplug script enabled the vtpm manager and removed the
control messages from the BE.
Signed-off-by: Vincent Scarlata <vincent.r.scarlata@intel.com>
kaf24@firebug.cl.cam.ac.uk [Tue, 27 Jun 2006 10:14:19 +0000 (11:14 +0100)]
[VTPM_TOOLS] Updated vtpmd to save complete state in preperateion to
support suspend/resume and migration. Fixed startup bug.
Signed-off-by: Vincent Scarlata <vincent.r.scarlata@intel.com>
kaf24@firebug.cl.cam.ac.uk [Tue, 27 Jun 2006 10:13:24 +0000 (11:13 +0100)]
[VTPM_TOOLS] Moved the developement tpm_emulator down to ring 3, which
should make debugging easier as well as fix the emulator for x86_64
Signed-off-by: Vincent Scarlata <vincent.r.scarlata@intel.com>
kaf24@firebug.cl.cam.ac.uk [Tue, 27 Jun 2006 10:05:39 +0000 (11:05 +0100)]
[TOOLS] Fix cm argument processing some more:
1. Remove has_long_option() and add arg_check_for_resource_list()
instead.
2. 'args' tells 'options' from 'params' by using gnu_getopt().
3. 'options' checks whether -l/--long option is specified.
4. If 'params' not given, print out 'No domain parameter given'
and usage.
5. If 'params' given multiple domains, print out
'No multiple domain parameters allowed' and usage.
6. Then it displays the resources as usual.
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
kaf24@firebug.cl.cam.ac.uk [Tue, 27 Jun 2006 09:44:33 +0000 (10:44 +0100)]
Add XENVER_pagesize hypercall.
Make xen pagesize available through xm info and sysfs.
Signed-off-by: Tristan Gingold <tristan.gingold@bull.net>
kfraser@dhcp93.uk.xensource.com [Tue, 27 Jun 2006 09:36:51 +0000 (10:36 +0100)]
[XEN][EMUL] x86 emulator should support 32-bit offsets in real mode.
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Tue, 27 Jun 2006 08:54:05 +0000 (09:54 +0100)]
[HVM][VMX] On a VMEXIT, 'dirty' the DR. Restore DR from vcpu struct,
disable DR exiting (i.e., enable guest DR access), set VCPUF_dr_dirtied.
Remove "emulated" DR access, which only read and wrote to the debug register
values of the context, but not to the actual hardware values themselves.
Signed-off-by: George Dunlap <dunlapg@umich.edu>
kaf24@firebug.cl.cam.ac.uk [Tue, 27 Jun 2006 08:51:18 +0000 (09:51 +0100)]
[HVM][VMX] Added flag_dr_dirty to hvm vcpu struct. If this flag is set,
save the debug registers, clear the flag, and remove guest access to
debug registers.
Signed-off-by: George Dunlap <dunlapg@umich.edu>
Signed-off-by: Nitin Kamble <nitin.a.kamble@intel.com>
kaf24@firebug.cl.cam.ac.uk [Tue, 27 Jun 2006 08:48:23 +0000 (09:48 +0100)]
[HVM][VMX] Added dr restore if breakpoints are enabled in guest dr7.
Signed-off-by: George Dunlap <dunlapg@umich.edu>
Signed-off-by: Nitin Kamble <nitin.a.kamble@intel.com>
kaf24@firebug.cl.cam.ac.uk [Tue, 27 Jun 2006 08:41:09 +0000 (09:41 +0100)]
[HVM][VMX] Safer treatment of VM_EXEC_CONTROL when dealing w/ PENDING_INTERRUPT vmexit.
Signed-off-by: George Dunlap <dunlapg@umich.edu>
kaf24@firebug.cl.cam.ac.uk [Tue, 27 Jun 2006 08:33:35 +0000 (09:33 +0100)]
[HVM][VMX] Propagate debug exception to guest if no external debugger is enabled.
Signed-off-by: George Dunlap <dunlapg@umich.edu>
awilliam@xenbuild.aw [Mon, 26 Jun 2006 20:41:54 +0000 (14:41 -0600)]
[IA64] Remove kludge in Makefile to build asm-xsi-offsets.h
Add missing include files in HDRS
Signed-off-by: Tristan Gingold <tristan.gingold@bull.net>
awilliam@xenbuild.aw [Mon, 26 Jun 2006 20:34:18 +0000 (14:34 -0600)]
[IA64] sync console before halt/reboot
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
awilliam@xenbuild.aw [Mon, 26 Jun 2006 20:33:01 +0000 (14:33 -0600)]
[IA64] ptc.g virtualization fix
VMM only needs to switch rr0 and pta when emulating ptc.g.
Because VMM only use rr0 and pta to do global purge on other LPs.
VMM doesn't need to switch rr7, it is time consuming operation.
Signed-off-by: Anthony Xu <anthony.xu@intel.com>
emellor@leeni.uk.xensource.com [Sat, 24 Jun 2006 22:44:18 +0000 (23:44 +0100)]
Some fine-tuning in the virtual TPM scripts for hotpluging. The changes
enable a virtual TPM to save its state between reboots of the virtual
TPM implementation.
Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
Signed-off-by: Vincent Scarlata <vincent.r.scarlata@intel.com>
emellor@leeni.uk.xensource.com [Sat, 24 Jun 2006 22:39:05 +0000 (23:39 +0100)]
Increases the retry limit to allow xend more time before issuing a balloon
error. This fixes bug #683.
Signed-off-by: Susan Krysan <krysans@unisys.com>
awilliam@xenbuild.aw [Fri, 23 Jun 2006 22:10:32 +0000 (16:10 -0600)]
[IA64] Change of VTi guest firmware name and default directory in xmexample
This trivial patch changes VTi guest firmware default name and directory
in xmexample to new directory /usr/lib/xen/boot/guest_firmware.bin. This
aligns with IA32 firmware directory and good to integrate into Fedora
Core.
Signed-off-by Fenghua Yu <fenghua.yu@intel.com>
awilliam@xenbuild.aw [Fri, 23 Jun 2006 21:33:25 +0000 (15:33 -0600)]
merge with xen-unstable.hg
awilliam@xenbuild.aw [Fri, 23 Jun 2006 21:26:01 +0000 (15:26 -0600)]
[IA64] dom0vp machtophys fix argument check
fix argument check of dom0vp machtophys hypercall. use valid_mfn()
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
awilliam@xenbuild.aw [Fri, 23 Jun 2006 21:24:06 +0000 (15:24 -0600)]
[IA64] fix RSE issues rlated to handle_lazy_cover().
It must be after trying vTLB in ia64_do_page_fault().
This patch fixes the following scenario.
linux-2.6-xen-sparse/arch/ia64/xen/xenentry.S
Here psr.i and psr.ic is off
rse_clear_invalid:
...
(pRecurse) br.call.dptk.few b0=rse_clear_invalid
;;
mov loc8=0
mov loc9=0
1. Right before mov loc8=0, vcpu is switched to another cpu.
2. While the vcpu is waiting for cpu, the tlb entry which backs the rse
stack is purged.
3. The vcpu gets cpu again, tlb miss fault occurs with isr.ir = 1.
4. xen ia64_do_page_fault() calls handle_lazy_cover() which sets
cr.ifs = 0.
5. xen returns cpu execution to the guest.
6. mov loc8 = 0 is executed with cfm = 0.
Illigal operation fault is raised
7. priv_handle_op() is called. but it fails to emulate because
mov loc8 = 0 isn't privileged op.
8. ia64_handle_privop() calls panic_domain().
Signed-off-by: Xu, Anthony <anthony.xu@intel.com>
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
awilliam@xenbuild.aw [Fri, 23 Jun 2006 21:20:43 +0000 (15:20 -0600)]
[IA64] memory exchange: use memory exchange
rewrite __xen_create_contiguous_region() and __xen_destroy_contiguous_region()
with XENMEM_exchange hypercall similar to x86.
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
awilliam@xenbuild.aw [Fri, 23 Jun 2006 21:16:10 +0000 (15:16 -0600)]
[IA64] memory exchange: support memory exchange
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
awilliam@xenbuild.aw [Fri, 23 Jun 2006 21:13:54 +0000 (15:13 -0600)]
[IA64] memory exchange: update comment
update comment. s/steal_page_for_grant_transfer/steal_page/g
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
awilliam@xenbuild.aw [Fri, 23 Jun 2006 21:12:10 +0000 (15:12 -0600)]
[IA64] memory exchange: ia64 counter part of cs 10353 xen-unstable.hg
IA64 counter part of the change set
10353:
bd1a0b2bb2d4596227951ad6d36cb4fcc2d00a8e of xen-unstable.hg
Only destroy a machine-contiguous memory region if it really is contiguous.
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
awilliam@xenbuild.aw [Fri, 23 Jun 2006 16:04:12 +0000 (10:04 -0600)]
[IA64] enable xencons irq for pcdp described uarts
This patch enables interrupts for xencons on UARTs described via the
HCDP/PCDP tables. This gets a little messy because the old HCDP
doesn't provide interrupt polarity/trigger info. If the UART is on a
PCI device we can assume it's low/level, otherwise we have to resort to
more creative methods. Since this old table is being phased out in
favor of the new version that does provide all the interrupt info, we
should have a fixed number of boxes out there that we have to detect (or
leave in polling mode). I've added a function to detect and setup the
HP models based on the model string found in the ACPI XSDT OEM table ID.
I also added a xencons_poll boot option in case detection goes wrong or
the table provides the wrong info, we can force it to a working state.
Removed all of the "About to call..." printks in xensetup while I was
there.
Signed-off-by: Alex Williamson <alex.williamson@hp.com>
awilliam@xenbuild.aw [Fri, 23 Jun 2006 15:46:39 +0000 (09:46 -0600)]
[IA64] Allow guest to set the address of shared_info.
Add a new hypercall: SET_SHARED_INFO_VA.
Cleanup of asm-xsi-offsets: do not define absolute address, use a new macro.
Cleanup of linux asm-offsets: use a macro for xen mapped regs.
xensetup.S: set the shared_info address (disabled if using compatibility).
privop.h: May redefined XSI_BASE (not yet enabled for compatibility).
Vocabulary coherence: use XMAPPEDREGS_ prefix.
Cleanup of xensystem.h
Signed-off-by: Tristan Gingold <tristan.gingold@bull.net>
kaf24@firebug.cl.cam.ac.uk [Thu, 22 Jun 2006 20:37:33 +0000 (21:37 +0100)]
[TOOLS] Fix set_bit/clear bit for x86/64 in xc_linux_save
From: John Byrne <john.l.byrne@hp.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Thu, 22 Jun 2006 20:30:51 +0000 (21:30 +0100)]
[XM-TEST] Remove second console attach in 03_memset_random_pos
Signed-off-by: Jim Dykman <dykman@us.ibm.com>
kaf24@firebug.cl.cam.ac.uk [Thu, 22 Jun 2006 14:25:18 +0000 (15:25 +0100)]
[VMX] Fix use of VMCLEAR a little: no need if not active on any CPU.
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Thu, 22 Jun 2006 14:10:48 +0000 (15:10 +0100)]
[TOOLS] Make sure to explicitly close the connection if we're using HTTP/1.0. This
shouldn't be needed but it appears to be necessary as the Python client
just does a wfile.read() instead of only reading the reported Content-Length.
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
kaf24@firebug.cl.cam.ac.uk [Thu, 22 Jun 2006 14:09:48 +0000 (15:09 +0100)]
[TOOLS] Treat '--' command-line split option correctly.
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
kaf24@firebug.cl.cam.ac.uk [Thu, 22 Jun 2006 13:12:01 +0000 (14:12 +0100)]
[TOOLS] Fix pagetable-pinning loop in xc_linux_restore.
Previously it would not pin last PFN in physmap even if it was
a pagetable page.
Signed-off-by: Keir Fraser <keir@xensource.com>
awilliam@xenbuild.aw [Wed, 21 Jun 2006 17:17:08 +0000 (11:17 -0600)]
[IA64] per cpu vhpt stats
dump_vhpt_stats: disp usage per cpu.
Signed-off-by: Tristan Gingold <tristan.gingold@bull.net>
awilliam@xenbuild.aw [Wed, 21 Jun 2006 17:15:08 +0000 (11:15 -0600)]
[IA64] optionally enable xen console with irq/input.
Makes xen serial console working in input.
You need to add 'xencons' option to xen command line, and you need
to disable serial on linux (unfortunatly).
Remove unused functions in irq.c
Add a ia64_xen_vector bitmask of vectors used exclusively by Xen.
Signed-off-by: Tristan Gingold <tristan.gingold@bull.net>
awilliam@xenbuild.aw [Wed, 21 Jun 2006 16:40:20 +0000 (10:40 -0600)]
[IA64] Update xmexample.vti
This simple patch is just to update xmexample.vti
1. Add "vcpus" for supporting SMP VTI.
2. Add serial='pty' for using "xm console" of VTI.
3. Add usb device supporting for VTI.
4. Use cirrus logic accelerated VGA.
Signed-off-by: You Yongkang <yongkang.you@intel.com>
awilliam@xenbuild.aw [Wed, 21 Jun 2006 16:30:15 +0000 (10:30 -0600)]
[IA64] remove CONFIG_ARCH_XEN
Signed-off-by: Akio Takebe <takebe_akio@jp.fujitsu.com>
awilliam@xenbuild.aw [Wed, 21 Jun 2006 16:25:00 +0000 (10:25 -0600)]
[IA64] don't allow non-dom0 domains to set pte memory attributes
domUs shouldn't be allowed to set arbitrary memory attributes.
This could allow accessing system memory with uncached attributes,
leading to address aliasing, unsupported transactions, or worse.
Signed-off-by: Alex Williamson <alex.williamson@hp.com>
awilliam@xenbuild.aw [Wed, 21 Jun 2006 16:15:46 +0000 (10:15 -0600)]
[IA64] create MDT entry to cover fw_mem area in dom_fw_init()
- create MDT entry for fw_mem area on dom0 & domU
- leave a hole for this region in dom_fw_dom0_lowmem()
- move inline macros definitions out of function
- consolidate to single conventional memory adding routine for dom0/domU
Signed-off-by: Alex Williamson <alex.williamson@hp.com>
kaf24@firebug.cl.cam.ac.uk [Wed, 21 Jun 2006 16:09:14 +0000 (17:09 +0100)]
[XEN] localtime support for paravirtualized guests
It is quite minimal
in its approach, satisfying the purposes of the paravirtualized
NetWare operating system as well as any others that expect the time
base to be provided in localtime.
Signed-off-by: Bruce Rogers <brogers@novell.com>
kaf24@firebug.cl.cam.ac.uk [Wed, 21 Jun 2006 15:55:25 +0000 (16:55 +0100)]
[LINUX][TPM] Use min_t/min instead of the #define'd MIN.
Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
kaf24@firebug.cl.cam.ac.uk [Wed, 21 Jun 2006 15:54:09 +0000 (16:54 +0100)]
[LINUX] Transparent virtualization fixes.
Signed-off-by: Tristan Gingold <tristan.gingold@bull.net>
kaf24@firebug.cl.cam.ac.uk [Wed, 21 Jun 2006 09:56:20 +0000 (10:56 +0100)]
[IA64] stub to support dump_execution_state() on ia64
Also implement on_selected_cpus() for ia64.
Signed-off-by: Alex Williamson <alex.williamson@hp.com>
awilliam@lappy [Tue, 20 Jun 2006 23:02:22 +0000 (17:02 -0600)]
[IA64] build linux kernel without using asm-xsi-offsets.h
All the relevent information are already exported with arch-ia64.h
Use linux asm-offsets.h to write xsi offsets defines.
Signed-off-by: Tristan Gingold <tristan.gingold@bull.net>
[Removed xen-mkbuildtree-post/-pre]
Signed-off-by: Alex Williamson <alex.williamson@hp.com>
awilliam@lappy [Tue, 20 Jun 2006 22:29:59 +0000 (16:29 -0600)]
[IA64] check address clash with Xen for itc/ptc/itr/ptr
Panic domain if the address is within the Xen virtual space.
Signed-off-by: Tristan Gingold <tristan.gingold@bull.net>
awilliam@lappy [Tue, 20 Jun 2006 22:21:13 +0000 (16:21 -0600)]
[IA64] purge stale tlb entry in ia64_do_page_fault()
fix ia64_do_page_fault(). When it determines to again, it might remains stale
entry in tlb entry hoping next tlb imsert may purge it.
But if reflects faults, the stale entry remains. it must be purged.
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
awilliam@lappy [Tue, 20 Jun 2006 22:05:17 +0000 (16:05 -0600)]
[IA64] Fix for ptc.ga emulation
If switch to idle domain after vhpt_purge in ptc_ga emulation,
shouldn't switch rr7 and pta. Only disable VHPT needed. If no,
Smp VTi will hang whole system due to fault.
Signed-off-by: Zhang xiantao <xiantao.zhang@intel.com>
Signed-off-by: Kevin Tian <kevin.tian@intel.com>
awilliam@xenbuild.aw [Tue, 20 Jun 2006 21:56:48 +0000 (15:56 -0600)]
[IA64] Create vpsr_pp in privregs instead of using tmp[8].
Signed-off-by: Tristan Gingold <tristan.gingold@bull.net>
kaf24@firebug.cl.cam.ac.uk [Tue, 20 Jun 2006 17:51:46 +0000 (18:51 +0100)]
[XEN] Xen always relinquishes VGA console to domain0 when domain0
starts to boot (previous behaviour looked for console=tty0 on
dom0's command line). To prevent this 'console=vga[keep]' must
be specified.
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Tue, 20 Jun 2006 17:28:41 +0000 (18:28 +0100)]
[XEN] Fix to previous changeset: continue to do softirq while delaying.
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Tue, 20 Jun 2006 17:19:07 +0000 (18:19 +0100)]
[XEN] Add a warning banner when 'sync_console' is used. Make it
very obvious and mildly annoying.
Signed-off-by: Keir Fraser <keir@xensource.com>
awilliam@xenbuild.aw [Tue, 20 Jun 2006 16:40:14 +0000 (10:40 -0600)]
[IA64] fix mfn_to_local_pfn() for dma context
Thanks to Kevin for tracking down this problem. This is a temporary
solution until we come up with something better for ia64.
Signed-off-by: Alex Williamson <alex.williamson@hp.com>
kaf24@firebug.cl.cam.ac.uk [Tue, 20 Jun 2006 16:04:13 +0000 (17:04 +0100)]
[XEN] Fix PAE PDPT shadowing coherence.
Signed-off-by: Keir Fraser <keir@xensource.com>
kfraser@dhcp93.uk.xensource.com [Tue, 20 Jun 2006 13:45:46 +0000 (14:45 +0100)]
Add new XENMEM_machphys_mapping to get info about location and
sizeof of the mach2phys table default mapping. Use this in Linux to
dynamically adapt the mfn_to_pfn() routine to undelrying hypervisor.
Signed-off-by: Keir Fraser <keir@xensource.com>
kfraser@dhcp93.uk.xensource.com [Tue, 20 Jun 2006 12:45:23 +0000 (13:45 +0100)]
[LINUX] Another fix to i386 mfn_to_pfn().
Signed-off-by: Keir Fraser <keir@xensource.com>
kfraser@dhcp93.uk.xensource.com [Tue, 20 Jun 2006 12:42:08 +0000 (13:42 +0100)]
[LINUX] Fix i386 build -- define max_mapnr in mfn_to_pfn().
Signed-off-by: Keir Fraser <keir@xensource.com>
emellor@leeni.uk.xensource.com [Tue, 20 Jun 2006 12:32:21 +0000 (13:32 +0100)]
Move the SSHTransport class to its own file, so that we may disable SSH
transport when running on Python <2.4. SSHTransport uses the new subprocess
class, and so it doesn't work on older versions.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
ack@localhost.localdomain [Tue, 20 Jun 2006 11:12:44 +0000 (12:12 +0100)]
Merge
ack@localhost.localdomain [Tue, 20 Jun 2006 11:11:28 +0000 (12:11 +0100)]
Run credit scheduler tests by default
Signed-off-by: Emmanuel Ackaouy <ack@xensource.com>
kfraser@dhcp93.uk.xensource.com [Tue, 20 Jun 2006 11:01:09 +0000 (12:01 +0100)]
Export machine_to_phys start and end addresses to guests.
Use this info in Linux to bounds-check accesses to the
m2p table.
Signed-off-by: Keir Fraser <keir@xensource.com>
shand@kneesaa.uk.xensource.com [Tue, 20 Jun 2006 10:04:58 +0000 (11:04 +0100)]
Make the credit scheduler the default - a number of bugs have been fixed
(thanks to all for testing!) and now seems ready for more widespread usage.
Signed-off-by: Steven Hand <steven@xensource.com>
shand@kneesaa.uk.xensource.com [Tue, 20 Jun 2006 10:02:49 +0000 (11:02 +0100)]
Remove some spurious BUG_ON()'s from the credit scheduler.
Signed-off-by: Steven Hand <steven@xensource.com>
anthony@rhesis.austin.ibm.com [Tue, 20 Jun 2006 09:25:22 +0000 (10:25 +0100)]
Use an environmental variable (XM_SERVER) to determine XML-RPC URI.
This allows users to invoke xm against a remote server. This is much more
useful though for exercising XML-RPC transports with xm-test though since
xm-test will continue to (mostly) function if the URI is localhost.
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
root@rhesis.austin.ibm.com [Tue, 20 Jun 2006 09:25:21 +0000 (10:25 +0100)]
This patch adds client side support for XML-RPC over ssh. It differs from
the previous submission in that it now uses lazy evaluation to connect
to the remote server and provides more user friendly error messages if ssh
is not available.
Signed-off-by: Anthony Liguori
anthony@rhesis.austin.ibm.com [Tue, 20 Jun 2006 09:25:20 +0000 (10:25 +0100)]
Add an xm serve command.
This command proxies the Xend XML-RPC over stdio. This is similiar to
mercurial's hg serve --stdio command.
The most obvious use of this command is remote XML-RPC invocation over SSH.
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
anthony@rhesis.austin.ibm.com [Tue, 20 Jun 2006 09:25:18 +0000 (10:25 +0100)]
Add support to Xend XML-RPC server for HTTP/1.1 Keep-Alive.
This patch fixes a few bugs in the Python SimpleXMLRPC server and enables
HTTP/1.1 by default. This allows a client to use Keep-Alive. Keep-Alive
improves performance by eliminating the overhead of connection setup and,
more importantly, avoids credential caching when executing multiple
commands over a secure connection.
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
awilliam@xenbuild.aw [Mon, 19 Jun 2006 20:55:13 +0000 (14:55 -0600)]
[IA64] dummy print_stack() func for NO_TRANSLATION path
Signed-off-by: Alex Williamson <alex.williamson@hp.com>
awilliam@xenbuild.aw [Mon, 19 Jun 2006 19:45:42 +0000 (13:45 -0600)]
[IA64] fix ptc.ga virtualization
fix ptc.ga virtualization. Uninitialized vcpu doesn't need tlb flush.
ptc_ga_remote_func() calls vmx_vcpu_ptc_l() in IPI context.
I.e. vcpu may not equal to current. On the other hand vmx_vcpu_ptc_l()
assumes vcpu = current. remove the assumption.
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
awilliam@xenbuild.aw [Mon, 19 Jun 2006 19:42:34 +0000 (13:42 -0600)]
[IA64] display vmx fault messges
This patch modifies the vmx fault handler to display a message when a
fault occurs in hypervisor.
This includes the followings:
- Break 0 handler is modified to check psr.vm bit instead of cpl.
- External interrupt handler is modified to get current using
MINSTATE_GET_CURRENT instead of r21. r21 has been used in DO_SAVE_MIN
which is called from other fault handlers. I'm not sure why the
original vmx fault handler gets the current from r21.
Signed-off-by: Kouya Shimura <kouya@jp.fujitsu.com>
Signed-off-by: Tetsu Yamamoto <yamamoto.tetsu@jp.fujitsu.com>
awilliam@xenbuild.aw [Mon, 19 Jun 2006 19:35:49 +0000 (13:35 -0600)]
[IA64] fix is_kernel_text in xenctx and show more registers
Signed-off-by: Akio Takebe <takebe_akio@jp.fujitsu.com>